home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pico / makefile.gso < prev    next >
Makefile  |  1996-04-05  |  3KB  |  102 lines

  1. # $Id: makefile.gso,v 1.3 1996/04/05 18:06:44 mikes Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for SVR4 version of the PINE composer library and 
  27. # stand-alone editor pico, uses gcc compiler.
  28. #
  29. # [Port courtesy of Marc Unangst <mju@mudos.ann-arbor.mi.us> - mss, 921020]
  30. #
  31.  
  32. #for GNU C
  33. CC=         gcc
  34. LDCC=        gcc
  35. # LDCC= /usr/bin/cc
  36. # If you don't have /usr/bin/cc (our Solaris 2.2 doesn't seem to have it,
  37. # it only has /usr/ucb/cc) then change LDCC to the following line and
  38. # give that a try.  This is still using the Solaris compiler but
  39. # leaving out the UCB compatibility includes and libraries.
  40. # LDCC= cc5.sol
  41.  
  42. STDCFLAGS=    -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE
  43. #otherwise
  44. #STDCFLAGS=    -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE
  45.  
  46. #includes symbol info for debugging 
  47. #DASHO=        -g
  48. #for normal build
  49. DASHO=        -O
  50.  
  51. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  52.  
  53. # switches for library building
  54. LIBCMD=        ar
  55. LIBARGS=    ru
  56. RANLIB=        true
  57.  
  58. LIB=        $(EXTRALIBES) -ltermlib
  59.  
  60. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  61.         composer.o display.o file.o fileio.o line.o osdep.o \
  62.         pico.o random.o region.o search.o spell.o tinfo.o \
  63.         window.o word.o
  64.  
  65. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  66.         composer.c display.c file.c fileio.c line.c osdep.c \
  67.         pico.c random.c region.c search.c spell.c tinfo.c \
  68.         window.c word.c
  69.  
  70. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  71.  
  72.  
  73. #
  74. # dependencies for the Unix versions of pico and libpico.a
  75. #
  76. all:        pico pilot
  77.  
  78. osdep.c:    os_unix.c
  79.         rm -f osdep.c
  80.         cp os_unix.c osdep.c
  81.  
  82. osdep.h:    os_unix.h
  83.         rm -f osdep.h
  84.         cp os_unix.h osdep.h
  85.  
  86. libpico.a:    $& osdep.c osdep.h $(OFILES)
  87.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  88.         $(RANLIB) libpico.a
  89.  
  90. pico:        main.c libpico.a
  91.         $(LDCC) $(CFLAGS) main.c libpico.a $(LIB) -o pico
  92.  
  93. pilot:        pilot.c libpico.a
  94.         $(LDCC) $(CFLAGS) pilot.c libpico.a $(LIB) -o pilot
  95.  
  96. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  97.  
  98. $(OFILES):    $(HFILES)
  99.  
  100. clean:
  101.         rm -f *.a *.o *~ osdep.c osdep.h pico pilot
  102.